import React, { useState, useEffect } from 'react'
import { Text, View, Image } from '@tarojs/components'
import './index.scss'
const index = (props) => {
    const { data = {}, index, ChangeValue } = props
    const {
        label,
        require = false,
        desc,
        value = '',
    } = data

    return <View className='CollectWps_box_content'>
        <View className='CollectWps_label'>{require && <Text style={{ color: "red", right: 4 }}>*</Text>}{label}</View>
        <View className='CollectWps_desc'>{desc}</View>
        <View className='CollectWps_image'>
            <Image style={{ width: '100%' }} src={value} mode='aspectFill' />
        </View>

    </View>
}
export default index